import { axios } from '~/plugins/axios';

// 根据id 查询机构详情
export const getInstitutionInfo = (params?: any) => axios({
  method: 'get',
  url: '/org/getById',
  params,
}) as Promise<any>;

// 根据id 查询关注项目 表格数据
export const getStartProjectInfo = (params?: any) => axios({
  method: 'get',
  url: '/org/staredOrg',
  params,
}) as Promise<any>;

// 根据id 查询咨询项目 表格数据
export const getConsultProjectInfo = (params?: any) => axios({
  method: 'get',
  url: '/org/consultationOrg',
  params,
}) as Promise<any>;

// 获取modal中用户信息
export const getUserInfo = (params?: any) => axios({
  method: 'get',
  url: '/UserController/getUserInfo',
  params,
}) as Promise<any>;

// 身份审核
export const handleAuditConfirm = (params?: any) => axios({
  method: 'post',
  url: '/org/exmainOrg',
  data: params,
}) as Promise<any>;

// 获取相关案例表格数据
export const getRelateCaseInfo = (params?: any) => axios({
  method: 'get',
  url: '/org/aboutCases',
  params,
}) as Promise<any>;
